<?php
namespace app\member\controller;
use think\Controller;
class BaseUser extends Controller{
    public  function __construct(){
        parent::__construct();
        if (empty(getSession("user"))) {
            $this->error("请先登录！",url('Member/login'));
        }
    }
}